<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('rd_device_rod', function (Blueprint $table) {
            $table->comment('装置组');
            $table->bigIncrements('id');
            $table->string('name', 100)->comment('装置名称');
            $table->integer('stand_id')->comment('站点ID');
            $table->integer('radar_num')->nullable()->default(0)->comment('雷达数量');
            $table->integer('online')->nullable()->default(1)->comment('在线状态1在线2离线');
            $table->timestamps();
            $table->authorBy();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('rd_device_rod');
    }
};